package 面向对象.实验六;

/**
 * @projectName: JAVA编程
 * @package: 面向对象.实验六
 * @className: test1Exception
 * @author: hhy帅
 * @description: TODO
 * @date: 2021/11/7 21:57
 */
public class test1Exception extends Exception{
    public test1Exception(String message){
        super(message);
    }
    public static void isNumber(int i) throws test1Exception{
        if(i<0){
            throw new test1Exception("不能为负数");
        }
    }
}
